<?php
class Shop_Model_DbTable_Image extends Zend_Db_Table_Abstract {

	protected $_name ='shop_image';
	protected $_rowClass = 'Shop_Model_DbTable_Image_Row';
	
	protected $_dependentTables = array(
		'Shop_Model_DbTable_Product'
    );
	
	protected $_referenceMap    = array(
        'Product' => array(
            'columns'           => 'product_id',
            'refTableClass'     => 'Shop_Model_DbTable_Product',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
//			'onDelete'			=> self::CASCADE
        )
    );
}